home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Workspace / Locus / Source / SwapView.h < prev    next >
Text File  |  1995-06-12  |  1KB  |  69 lines

  1.  
  2. /*
  3.     Copyright 1993  Jeremy Slade.
  4.  
  5.     You are free to use all or any parts of the Locus project
  6.     however you wish, just give credit where credit is due.
  7.     The author (Jeremy Slade) shall not be held responsible
  8.     for any damages that result out of use or misuse of any
  9.     part of this project.
  10.  
  11. */
  12.  
  13. /*
  14.     Project: Locus
  15.  
  16.     File: SwapView
  17.  
  18.     Description:
  19.     
  20.     This view handles swapping between different subviews, by swapping the subviews in and out of their panels.
  21.     
  22.     Original Author: Jeremy Slade
  23.  
  24.     Revision History:
  25.         Created
  26.             V.101    JGS    Sat Mar  6 20:27:59 GMT-0700 1993
  27.  
  28. */
  29.  
  30. #ifndef SwapView_h
  31. #define SwapView_h
  32.  
  33. #define SwapView_VERSION        (101)
  34.  
  35.  
  36. #import <appkit/View.h>
  37.  
  38.  
  39. @interface SwapView : View
  40. {
  41.     id    currentPane;
  42.     id    replacementView;
  43.     
  44.     id    delegate;
  45. }
  46.  
  47. // Creating, initializing
  48. + initialize;
  49. - initFrame:(const NXRect *)frameRect;
  50. - free;
  51.  
  52. // Setting the delegate, swapping the view
  53. - setDelegate:anObject;
  54. - delegate;
  55. - swap:sender;
  56. - swap;
  57. - drawSelf:(const NXRect *)rects :(int)rectCount;
  58.  
  59. @end
  60.  
  61.  
  62. @interface Object ( SwapViewDelegate )
  63. - swapPaneFor:sender;
  64. @end
  65.  
  66.  
  67. #endif SwapView_h
  68.  
  69.